package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.LearnView
import tmproject.hlhj.fhp.cartrans.javaBean.ClassListBean
import tmproject.hlhj.fhp.cartrans.modules.LearnModule

/**
 * Created by Administrator on 2018/8/26/026.
 */
class LearnPresenter :BasePresenter<LearnModule,LearnView>(), LearnModule.OnLearnLisener {
    override fun classResp(classListBean: ClassListBean?) {
        view?.setClassList(classListBean)
    }

    override fun createModule() {
        module= LearnModule()
        module.listener=this
    }
    fun getLearnList(c:Context,token:String?,page:Int,pageSize:Int){
        module.getClassList(c,token,page,pageSize)
    }

    override fun noMore() {
        view?.noMoreData()
    }
}